luci-app-nlbwmon: fix traffic numbers display in pie chart tooltips
authorJo-Philipp Wich <[email protected]>
Mon, 1 Mar 2021 09:27:30 +0000 (10:27 +0100)
committerJo-Philipp Wich <[email protected]>
Mon, 1 Mar 2021 09:31:01 +0000 (10:31 +0100)
commit628a1b8c8fd0ea23c99b8cb7e5195d414391f11f
tree57203d3751954b2a158556396238f47256d91843
parentf644bd99b4c7ae3e79068a0fa82eb2ff9a7ca0b6
luci-app-nlbwmon: fix traffic numbers display in pie chart tooltips

The pie chart tooltips used base 1000 to format traffic numbers while table
cell values were formatted using base 1024. Use base 1024 for both to report
the same values.

Fixes: #4759
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 77d6b2893524df3c3a9e3df7c974ed054e0171ab)
applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js